package xyz.tommy0607.calculator.util

import android.content.Context

class UiExt {
    companion object {
        fun dp2px(context: Context, dp: Int): Float {
            val scale = context.resources.displayMetrics.density
            return dp * scale + 0.5f
        }
    }
}